from QuackBehaviour import *
from FlyBehaviour import *

class Duck(object):
	def __init__(self):
		self.quackbehaviour = QuackBehaviour()
		self.flybehaviour = FlyBehaviour()
		
	def PerformQuack(self):
		self.quackbehaviour.quack()
		
	def PerformFly(self):
		self.flybehaviour.fly()
		
	def display(self):
		pass
		
	def swim(self):
		print 'All ducks float, even decoys!'
		
	def setFlyBehaviour(self,fb):
		self.flybehaviour = fb
		
	def setQuackBehaviour(self,qb):
		self.quackbehaviour = qb